package com.jbp.job;

import com.jbp.service.TecentMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.ListOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**同步腾讯用户消息
 * */
@Component
@Configuration
public class TencentUserJob {

    @Autowired
    private TecentMsgService tecentMsgService;
    /**
     * 同步用户
     */
    @Scheduled(fixedDelay = 2)
    public void quitRoom(){
//        System.out.println("同步用户");
        tecentMsgService.importUsers();
    }
}
